package com.zhuangjie.shop.enums;

/**
 * 活动值类型
 *
 * @author zhuangjie
 * @date 2024/03/15
 */
public enum ActivityValueType {
    BY_AMOUNT((byte)1, "按金额"),
    BY_DISCOUNT((byte)2, "按折扣"),
    BY_ACTIVITY_FEATURE((byte)3, "活动特征值");

    private final byte code;
    private final String name;

    ActivityValueType(byte code, String name) {
        this.code = code;
        this.name = name;
    }

    public byte getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
